<% if @filter_author != nil or @filters.select {|f| f[:on] }.count > 0 %>
  <span id="current_filters_title">Current filters:</span>
  <ul>
  <% if @filter_author != nil %>
    <li>
      <span class="filter_name">Author:</span>
      <span class="filter_value">
        <%= @filter_author.username %>
      </span>
    </li>
  <% end %>
  <% for filter in @filters %>
    <% if filter[:on] %>
    <li>
      <span class="filter_name"><%= filter[:display_name] %></span>
      <span class="filter_value">
        <%= filter[:query_condition_val] %>
      </span>
    </li>
    <% end %>
  <% end %>
  </ul>
  <div id="remove_filters">
    <%= link_to 'remove all filters', entries_url %>
  </div>
<% else %>
  <span id="no_current_filters_title">(No filters applied)</span>
<% end %>

